const Koa=require("koa2");
const routes=require("./router");
const {port}= require("./config");
const cors=require("koa2-cors");

const App=new Koa();

App.use(cors());

routes(App);

App.listen(port);